package com.example.service.impl;

import com.example.dao.UserInfoMapper;
import com.example.model.UserInfo;
import com.example.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {


    UserInfoMapper userInfoMapper;

    @Resource
    public void setUserInfoMapper(UserInfoMapper userInfoMapper) {
        this.userInfoMapper = userInfoMapper;
    }
    @Override
    public UserInfo getUserInfoById(String userId) {
        return userInfoMapper.selectByPrimaryKey(userId);
    }

    @Override
    public void payOrder(String userId) {
        // 使用mq 对user-service
    }
}
